package com.example.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class hello {

    // Define a method to handle GET requests to "/hello"
    @GetMapping("/hello")
    public String sayHello() {
        return "Hello, World!";
    }
}
